package com.henry.service.customer;

import com.henry.bean.Customer;
import com.henry.framework.annotation.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * Created by 峥桂 on 2017/5/6.
 */
@Service
public class CustomerService {

    /**
     * 获取客户列表
     * @param
     * @return
     */
    public List<Customer> getCustomerList() {
        List<Customer> list=new ArrayList<>();
        Customer c1=new Customer();
        c1.setName("张三");
        c1.setId(1);
        list.add(c1);
        return list;
    }

    /**
     * 获取客户
     * @param id
     * @return
     */
    public Customer getCustomer(long id) {
        //TODO
        return null;
    }

    /**
     * 创建客户
     * @param fieldMap
     * @return
     */
    public boolean createCustomer(Map<String,Object> fieldMap) {
        //TODO
        return false;
    }

    /**
     * 更新客户
     * @param fieldMap
     * @return
     */
    public boolean updateCustomer(Map<String,Object> fieldMap) {
        //TODO
        return false;
    }
    /**
     * 删除客户
     * @param fieldMap
     * @return
     */
    public boolean deleteCustomer(Map<String,Object> fieldMap) {
        //TODO
        return false;
    }


}
